package com.yk.airline.service.common.impl;

import com.yk.airline.dao.common.api.ICommonDao;
import com.yk.airline.service.common.api.ICommonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;

/**
 * Project Name:airlinecrawler
 * File Name:CommonServiceImpl
 * Package Name:com.yk.airline.service.common.impl
 * Date:2018/1/30 17:05
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2018, 重庆云凯科技有限公司 All Rights Reserved.
 */
@Service("commonService")
public class CommonServiceImpl<T> implements ICommonService<T> {

    @Resource(name = "commonDao")
    private ICommonDao<T> commonDAO;

    @Override
    public Serializable save(T object) {
        return commonDAO.save(object);
    }

    @Override
    public boolean delete(T object) {
        return commonDAO.delete(object);
    }

    @Override
    public boolean update(T object) {
        return commonDAO.update(object);
    }
}
